<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            控制台
            <small>控制面板</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">资讯管理</li>
            <li class="active">修改资讯</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-1"></div>
            <div class="col-md-10">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title"><?php echo $name?></h3>
                <a href="{:url('/admin/info/index/cid/'.$cid)}"  class="btn btn-info pull-right ">返回列表</a>
            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form role="form" method="post" action=""  enctype="multipart/form-data">
                <div class="box-body">
                    <div class="form-group">
                        <label for="select1">分类</label>
                        <select id="select1" class="form-control" name="cat_id">
                            <?php foreach($infocates as $item){?>
                            <option value="<?php echo $item['cat_id']; ?>" <?php if($item['cat_id']==$cid)echo "selected"; ?>><?php echo $item['cat_title']; ?></option>
                            <?php } ?>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="inputText1">标 题</label>
                        <input type="text" class="form-control" id="inputText1" name="title" value="<?php echo $info['title']; ?>">
                    </div>
                    <div class="form-group">
                        <label for="inputAuthor">作 者</label>
                        <input type="text" class="form-control" id="inputAuthor" name="author" value="<?php echo $info['author']; ?>">
                    </div>
                    <div class="form-group">
                        <label for="inputText1">简 介</label>
                        <input type="text" class="form-control" id="inputText2" name="intro" value="<?php echo $info['intro']; ?>">
                    </div>
                    <div class="form-group">
                        <input type="file" name="image">
                    </div>
                    <div class="form-group">
                        <!-- 加载编辑器的容器 -->
                        <script id="container" name="details" type="text/plain" style="height:300px;"><?php echo $info['details']; ?></script>
                        <!-- 配置文件 -->
                        <script type="text/javascript"
                        src="__UEDITOR__ueditor.config.js"></script>
                        <!-- 编辑器源码文件 -->
                        <script type="text/javascript" src="__UEDITOR__ueditor.all.js"></script>
                        <!-- 实例化编辑器 -->
                        <script type="text/javascript">
                            var ue = UE.getEditor('container');
                        </script>
                    </div>
                </div>
                <!-- /.box-body -->

                <div class="box-footer">
                    <button type="submit" class="btn btn-primary pull-right">保  存</button>
                </div>
            </form>
        </div>
            </div>
            <div class="col-md-1"></div>
        </div>
    </section>
    <!-- /.content -->
</div>